
/**
 * Project Name: eig-moment
 * File Name:    CreatorBackup.java
 * Package Name: com.dance.eig.moment.entity
 * Date:2017年12月19日下午2:31:18
 * Copyright (c) 2017, wangazhi@sohu.com All Rights Reserved.
 */

package com.aiyige.model.moment.backup;

/**
 * 功能:    创建人信息备份. <br/>
 * 日期:    2017年12月19日 下午2:31:18 <br/>
 *
 * @author wzj
 * @since JDK 1.8
 */

public class CreatorBackup {
    /**
     * 用户ID
     */
    private String id;
    /**
     * 用户名
     */
    private String name;
    /**
     * 用户头像URL
     */
    private String avatar;
    /**
     * 用户等级
     */
    private Integer level;
    /**
     * nim聊天id
     */
    private String accid;

    public CreatorBackup() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getAccid() {
        return accid;
    }

    public void setAccid(String accid) {
        this.accid = accid;
    }

    public CreatorBackup(CreatorBackup other) {
        if (other == null) {
            this.id = "";
            this.name = "";
            this.avatar = "";
            this.level = 0;
            this.accid="";
        } else {
            this.id = other.id == null ? "" : other.id;
            this.name = other.name == null ? "" : other.name;
            this.avatar = other.avatar == null ? "" : other.avatar;
            this.level = other.level == null ? 0 : other.level;
            this.accid=other.accid==null?"":other.accid;
        }
    }
}
  